package com.hoshiicloud.mallshop.feign;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.mallshop.feign.hystrix.ShopMarketFeignServiceFallback;
import com.hoshiicloud.market.entity.activities.Slideshow;
import com.hoshiicloud.market.entity.activities.param.SlideshowAddParam;
import com.hoshiicloud.market.entity.activities.param.SlideshowQueryParam;
import com.hoshiicloud.market.entity.activities.param.SlideshowUpdateParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;



@FeignClient(name = "hoshiicloud-market",fallbackFactory = ShopMarketFeignServiceFallback.class)
public interface ShopMarketFeignService {

    /** 保存店铺轮播图信息*/
    @PostMapping("/market/slideshow/save")
    Response<Boolean> saveSlideshow(@RequestBody SlideshowAddParam param);

    /** 根据id查询店铺轮播图*/
    @GetMapping("/market/slideshow/{id}")
    Response<Slideshow> querySlideshowById(@PathVariable("id") Long id);

    /** 根据id更新店铺轮播图信息*/
    @PutMapping("/market/slideshow/updateById")
    Response<Boolean> updateSlideshowById(@RequestBody SlideshowUpdateParam param);

    @PostMapping("/market/slideshow/query/page")
    Response<Page<Slideshow>> slidershowPage(@RequestBody SlideshowQueryParam param);

    @DeleteMapping("/market/slideshow/deleted/{id}")
    Response<Boolean> deletedSlideshowById(@PathVariable("id") Long id);
}
